<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--#include file="check.asp"-->
<title>中文单栏目生成静态</title>
<meta name="author" content="Web Design：Yuzhiguo QQ:286313315 E-mail:vip@yuzhiguo.com Website:http://www.yuzhiguo.com" />
<link href="pub/css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<%
if request("action") = "html_id" then
call html_id()
else
call html_all()
end if
%>

<%
sub html_all()
'全部生成html
set rs=server.CreateObject("adodb.recordset")
Sql = "Select * from yuzhiguo_other order by id"
rs.open sql,conn,1,1
totalPut=rs.recordcount
%>
总共有：<font color="#FF0000"><%=totalPut%></font>页需要生成！<br />
<%
do while not rs.eof
on error resume next 
host="c_info/?id="+Cstr(rs("id"))'前台动态地址
folder="../c_html_info/"'文件夹
filename=rs("html_url")'生成静态文件名
Fso_info host,folder,filename
rs.movenext
loop
rs.close
response.write"全部生成HTML完成.<br />"
end sub
%>

<%
sub html_id()
Set rs=Server.CreateObject("ADODB.Recordset")
Sql="Select * From yuzhiguo_other where id="&trim(request("id"))
rs.Open Sql,Conn,1,1

host="c_info/?id="+Cstr(rs("id"))'前台动态地址
folder="../c_html_info/"'文件夹
filename=rs("html_url")'生成静态文件名
Fso_info host,folder,filename
rs.close
set rs=nothing
Call Alert ("生成完成！",-1)
end sub
%>
<!--#include file="foot.asp"-->
</body>
</html>
